package com.yl.module.property.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@ApiModel(value = "PropertyUeVO", description = "")
public class PropertyUeVO implements Serializable {
	private static final long serialVersionUID = 275195032746480908L;
	@ApiModelProperty(value = "伟世系统中的资产id")
	private Integer id;

	@ApiModelProperty(value = "资产名称")
	private String name;

	@ApiModelProperty(value = "UE编码")
	private String ueCode;

	@ApiModelProperty(value = "资产一级分类id")
	private Integer propertyTypeId;

	@ApiModelProperty(value = "资产二级分类id")
	private Integer propertyTypeId2;

	@ApiModelProperty(value = "资产三级分类id")
	private Integer propertyTypeId3;

	@ApiModelProperty(value = "资产所属资产分类叶子节点id 目前来说 如果是构件就是资产三级分类id 如果是非构件 就是资产二级分类id")
	private Integer propertyTypeIdLeaf;

	@ApiModelProperty(value = "状态 正常1 告警2 离线3")
	private Integer state;

	@ApiModelProperty(value = "保养状态 提醒关闭了或不需要提醒1 即将保养2 保养超期3")
	private Integer maintainState;

	@ApiModelProperty(value = "更换状态 提醒关闭了或不需要提醒1 即将更换2 更换超期3")
	private Integer changeState;




	@ApiModelProperty(value = "是否在线 0否 1是 默认在线1")
	private Integer isOffline;

	@ApiModelProperty(value = "告警状态 0否 1是 默认无告警0")
	private Integer alarmState;

	@ApiModelProperty(value = "是否开启保养提醒 0否 1是 默认0")
	private Integer isMaintain;

	@ApiModelProperty(value = "下次保养日期")
	//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime nextTimeMaintain;

	@ApiModelProperty(value = "是否开启更换提醒 0否 1是 默认0")
	private Integer isChange;

	@ApiModelProperty(value = "下次更换日期")
	//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime latelyChangeDate;

	@ApiModelProperty(value = "质保期 例如一个月 三年 十年")
	private String warranty;

	@ApiModelProperty(value = "使用年限")
	private String durableYears;


}

